cmake_minimum_required(VERSION 3.5)
project(my_utils)

set(CMAKE_CXX_STANDARD 11)

include_directories(test)
include_directories(Utils)
include_directories(include)

aux_source_directory(include/json/json JSON_CPP_SRC)

#aux_source_directory(include/json JSON_DIR)
#add_executable(${PROJECT_NAME} JsonMap.h JsonMap.cpp main.cpp ${JSON_DIR})
aux_source_directory(include/json JSON_DIR)
add_executable(${PROJECT_NAME} JsonMap_rapidjson.h JsonMap_rapidjson.cpp main_rapidjson.cpp ${JSON_DIR})

IF (WIN32)
#    target_link_libraries(${PROJECT_NAME} -lws2_32)
    MESSAGE(STATUS "Now is windows")
ELSEIF (UNIX)
    target_link_libraries(${PROJECT_NAME} -lcrypto)
    MESSAGE(STATUS "Now is UNIX-like OS's.")
ENDIF ()

